package com.tamecode.listener;

import com.tamecode.event.SpringEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @Author: Liqc
 * @Date: 2022/1/21 16:07
 */
@Component
public class SpringListener implements ApplicationListener<SpringEvent> {

    public void onApplicationEvent(SpringEvent springEvent) {
        System.out.println(springEvent.getMessage());
    }

}
